﻿using JESAI.HttpRequestMonitor.Core.Abstracts;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace JESAI.HttpRequestMonitor.Core.Models
{
    public class MonitorRuleModel : IMonitorRuleModel
    {
        /// <summary>
        /// 唯一ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 规则标题
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 规则描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 规则已应用的节点列表
        /// </summary>
        public IList<string> Nodes { get; set; } = new List<string>();

        /// <summary>
        /// 规则的所有监控
        /// </summary>
        public IList<IMonitorModel> Monitors { get; set; } = new List<IMonitorModel>();

        public IList<string> NotificationEmails { get; set; } = new List<string>();

        public IList<string> NotificationPhoneNumbers { get; set; } = new List<string>();
    }
}
